#-ldflags="-w -s"

name="tcpServer"

GOOS=linux GOARCH=amd64 go build -v -ldflags="-w -s" -o ./bin/linux/$name
echo "Linux编译完成..."

GOOS=windows GOARCH=amd64 go build -v -ldflags="-w -s" -o ./bin/windows/$name.exe
echo "Windows编译完成..."

